[NET] front: Check for received packets in network_open0
authorack@localhost.localdomain <ack@localhost.localdomain>
Fri, 4 Aug 2006 15:07:58 +0000 (16:07 +0100)
committerack@localhost.localdomain <ack@localhost.localdomain>
Fri, 4 Aug 2006 15:07:58 +0000 (16:07 +0100)
commit092b64b838ed9b5dc0f7daea671d500501a419ae
tree36371a4c8d5c66e7efc9a2b7cacdec3a74881528
parent47b577e71c33acdebeacb0d51c7312ec84b96f94
[NET] front: Check for received packets in network_open0

Because the backend brings up the interface long before the frontend
has booted up, it is possible that by the time we get here we already
have packets queued up for processing.

If we don't process them here, we may delay them more than what is
necessary.  Worse yet, it is possible to miss the notification
interrupt from the backend in such a way that we never get another
one until we bring the interface down and up.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c